/**
 * Created by jaliu on 2015/3/15.
 */
module.exports = function (app) {
    var lotteryActivity = require('../../controllers/backoffice/backOffice-lotteryActivity-controller');

    app.post('/rest/' + RESTFullServiceVersion + '/backoffice/lottery/lotteryList', lotteryActivity.getActivityListForPage);
    app.post('/rest/' + RESTFullServiceVersion + '/backoffice/lottery/productList', lotteryActivity.getProducts);
    app.post('/rest/' + RESTFullServiceVersion + '/backoffice/lottery/addProduct', lotteryActivity.addProduct);
    app.post('/rest/' + RESTFullServiceVersion + '/backoffice/lottery/deleteProduct', lotteryActivity.deleteProduct);
    app.post('/rest/' + RESTFullServiceVersion + '/backoffice/lottery/findProductById', lotteryActivity.findProductById);
    app.post('/rest/' + RESTFullServiceVersion + '/backoffice/lottery/updateProductInventory', lotteryActivity.updateProductInventory);
    app.post('/rest/' + RESTFullServiceVersion + '/backoffice/lottery/getCommunitysByLotteryId', lotteryActivity.getCommunitysByLotteryId);
    app.post('/rest/' + RESTFullServiceVersion + '/backoffice/lottery/deleteLotteryCommunityMap', lotteryActivity.deleteLotteryCommunityMap);
    app.post('/rest/' + RESTFullServiceVersion + '/backoffice/lottery/getPrizeByLotteryId', lotteryActivity.getPrizeByLotteryId);
    app.post('/rest/' + RESTFullServiceVersion + '/backoffice/lottery/deletePrize', lotteryActivity.deletePrize);
    app.post('/rest/' + RESTFullServiceVersion + '/backoffice/lottery/getAllProduct', lotteryActivity.getAllProduct);
    app.post('/rest/' + RESTFullServiceVersion + '/backoffice/lottery/addPrize', lotteryActivity.addPrize);
    app.post('/rest/' + RESTFullServiceVersion + '/backoffice/lottery/getLotteryPrizeById', lotteryActivity.getLotteryPrizeById);
    app.post('/rest/' + RESTFullServiceVersion + '/backoffice/lottery/updateLotteryPrize', lotteryActivity.updateLotteryPrize);
    app.post('/rest/' + RESTFullServiceVersion + '/backoffice/lottery/getLotteryAward', lotteryActivity.getLotteryAward);
    app.post('/rest/' + RESTFullServiceVersion + '/backoffice/lottery/addLottery', lotteryActivity.addLottery);
    app.post('/rest/' + RESTFullServiceVersion + '/backoffice/lottery/deleteLottery', lotteryActivity.deleteLottery);
    app.post('/rest/' + RESTFullServiceVersion + '/backoffice/lottery/getLotteryById', lotteryActivity.getLotteryById);
    app.post('/rest/' + RESTFullServiceVersion + '/backoffice/lottery/updateLottery', lotteryActivity.updateLottery);
};